<template>
  <div>
    <TypeNav></TypeNav>
    <Listcontainer></Listcontainer>
    <Recommend></Recommend>
    <Rank></Rank>
    <Like></Like>
    <Floor v-for="floor in floorList" :key="floor.id" :list="floor"></Floor>
    <Brand></Brand>
  </div>
</template>

<script>
import Listcontainer from "./Listcontainer";
import Recommend from "./Recommend";
import Rank from "./Rank";
import Like from "./Like";
import Floor from "./Floor";
import Brand from "./Brand";
import { mapState } from "vuex";

export default {
  components: {
    Listcontainer,
    Recommend,
    Rank,
    Like,
    Floor,
    Brand,
  },
  computed: {
    ...mapState({ floorList: (state) => state.home.floorList }),
  },
  mounted() {
    this.$store.dispatch("getFloorList");
  },
};
</script>

<style>
</style>